package com.yanqu.road.server.manager.activity.chuhan.task.impl;

import com.yanqu.road.entity.enums.eTongBingTaskType;
import com.yanqu.road.server.manager.activity.chuhan.activity.CrossChuHanActivity;
import com.yanqu.road.server.manager.activity.chuhan.task.BaseCrossChuHanTask;

public class CrossChuHanBattleTask extends BaseCrossChuHanTask {

    private int cityId;

    public CrossChuHanBattleTask(CrossChuHanActivity activity, long beginTime, int cityId) {
        super(activity, beginTime);
        this.cityId = cityId;
    }

    @Override
    public void runTask() {
        activity.crossChuHanBattleTask(cityId);
    }

    @Override
    public String getId() {
        return generateId(cityId);
    }

    @Override
    public eTongBingTaskType getType() {
        return eTongBingTaskType.Battle;
    }

    public static String generateId(int cityId) {
        return String.valueOf(cityId);
    }
}
